package com.example.seckilldemo.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * @Author Wangbaba
 * @Date 2024/3/18 16:16
 * @Version 1.0
 */
@Getter
@ToString
@AllArgsConstructor
public enum RespBeanEnum {
    SUCCESS(200,"SUCCESS"),
    ERROR(500,"服务器异常"),
    LOGIN_ERROR(5001,"用户名或密码错误"),
    MOBILE_ERROR(5002,"手机号码格式不正确"),
    BIND_ERROR(5003,"参数校验异常"),
    SECKILL_EMPTY_ERROR(5004,"库存不足"),
    SECKILL_REPEAT_ERROR(5005,"秒杀商品限购一件"),
    EXIST_ERROR(5006,"请求非法，请重试"),
    CAPTCHA_ERROR(5007,"验证码错误，请重新输入"),
    ACCESS_ERROR(5008,"访问过于频繁，请稍后重试"),
    SESSION_ERROR(5009,"用户session不存在");

    private  final Integer CODE;
    private  final String MESSAGE;
}
